<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>nginx部署django项目 | 欢迎来到guo的博客!</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="整体流程共分为nginx部署django和nginx部署vue django项目配置在settings.py文件中配置 123456DEBUG &#x3D; True # 暂时开着ALLOWED_HOSTS &#x3D; [&amp;#x27;*&amp;#x27;]# 配置静态资源目录，后面部署会用到 STATIC_ROOT &#x3D; os.path.join(BASE_DIR, &quot;static&quot;) 将django项">
<meta property="og:type" content="article">
<meta property="og:title" content="nginx部署django项目">
<meta property="og:url" content="http://shangguan-lingfeng.gitee.io/blog1/2021/04/22/CentOS%E9%83%A8%E7%BD%B2django%E9%A1%B9%E7%9B%AE/index.html">
<meta property="og:site_name" content="欢迎来到guo的博客!">
<meta property="og:description" content="整体流程共分为nginx部署django和nginx部署vue django项目配置在settings.py文件中配置 123456DEBUG &#x3D; True # 暂时开着ALLOWED_HOSTS &#x3D; [&amp;#x27;*&amp;#x27;]# 配置静态资源目录，后面部署会用到 STATIC_ROOT &#x3D; os.path.join(BASE_DIR, &quot;static&quot;) 将django项">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2021/04/28/jOLc8UglmKSrQMD.png">
<meta property="og:image" content="https://i.loli.net/2021/04/22/g9kImitHxG6yalp.png">
<meta property="og:image" content="https://i.loli.net/2021/04/22/VRDHB1WQgzOxL3U.png">
<meta property="og:image" content="https://i.loli.net/2021/04/23/tJn4gIufy19DKEC.png">
<meta property="og:image" content="https://i.loli.net/2021/04/23/AXz3fZLlv4TiatS.png">
<meta property="og:image" content="https://img-blog.csdn.net/20170702105958247?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfMzU1NjgwOTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">
<meta property="article:published_time" content="2021-04-21T16:00:00.000Z">
<meta property="article:modified_time" content="2021-04-28T03:57:37.060Z">
<meta property="article:author" content="Jerry">
<meta property="article:tag" content="CentOS">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2021/04/28/jOLc8UglmKSrQMD.png">
  
    <link rel="alternate" href="/blog1/atom.xml" title="欢迎来到guo的博客!" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/blog1/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/blog1/css/style.css">

  
    
<link rel="stylesheet" href="/blog1/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/blog1/" id="logo">欢迎来到guo的博客!</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/blog1/">Home</a>
        
          <a class="main-nav-link" href="/blog1/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/blog1/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Suche"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Suche"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://shangguan-lingfeng.gitee.io/blog1"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-CentOS部署django项目" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/blog1/2021/04/22/CentOS%E9%83%A8%E7%BD%B2django%E9%A1%B9%E7%9B%AE/" class="article-date">
  <time class="dt-published" datetime="2021-04-21T16:00:00.000Z" itemprop="datePublished">2021-04-22</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      nginx部署django项目
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h2 id="整体流程共分为nginx部署django和nginx部署vue"><a href="#整体流程共分为nginx部署django和nginx部署vue" class="headerlink" title="整体流程共分为nginx部署django和nginx部署vue"></a>整体流程共分为nginx部署django和nginx部署vue</h2><p><img src="https://i.loli.net/2021/04/28/jOLc8UglmKSrQMD.png" alt="部署项目流程.png"></p>
<h3 id="django项目配置"><a href="#django项目配置" class="headerlink" title="django项目配置"></a>django项目配置</h3><p>在settings.py文件中配置</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">DEBUG = <span class="literal">True</span> <span class="comment"># 暂时开着</span></span><br><span class="line"></span><br><span class="line">ALLOWED_HOSTS = [<span class="string">&#x27;*&#x27;</span>]</span><br><span class="line"></span><br><span class="line"><span class="comment"># 配置静态资源目录，后面部署会用到 </span></span><br><span class="line">STATIC_ROOT = os.path.join(BASE_DIR, <span class="string">&quot;static&quot;</span>)</span><br></pre></td></tr></table></figure>
<h3 id="将django项目中所需要的环境进行打包"><a href="#将django项目中所需要的环境进行打包" class="headerlink" title="将django项目中所需要的环境进行打包"></a>将django项目中所需要的环境进行打包</h3><p>需要进入项目下进行环境的打包</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pip freeze &gt; requirement.txt</span><br></pre></td></tr></table></figure>
<p>效果图<br><img src="https://i.loli.net/2021/04/22/g9kImitHxG6yalp.png" alt="打包requirement.png"></p>
<p>可以使用filezilla上传到CentOS云主机上,p8_workorder为我的项目<br><img src="https://i.loli.net/2021/04/22/VRDHB1WQgzOxL3U.png" alt="上传项目到云主机.png"></p>
<p>cd进入到我的项目目录中</p>
<h3 id="安装所需要的环境与配置uwsgi"><a href="#安装所需要的环境与配置uwsgi" class="headerlink" title="安装所需要的环境与配置uwsgi"></a>安装所需要的环境与配置uwsgi</h3><p>安装所需要的环境</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> 如果你的安装是pip请使用pip安装，我的是pip3</span></span><br><span class="line">pip3 install -r requirement.txt</span><br></pre></td></tr></table></figure>
<p>我们还需要uwsgi协议进行后续的部署，但是直接安装uwsgi会报异常</p>
<p>我们需要yum安装相应的配置</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">yum install -y gcc* pcre-devel openssl-devel</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> 根据你安装python的名称来决定安装，比如我启动python是用python3来启动，所以我的安装是这样的</span></span><br><span class="line">yum install python3-devel -y</span><br></pre></td></tr></table></figure>
<p>现在我们就可以安装uwsgi协议了</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pip3 install uwsgi</span><br></pre></td></tr></table></figure>
<p>接下来我们需要执行命令来覆盖我们配置的静态资源</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">python3 manage.py collectstatic</span><br></pre></td></tr></table></figure>
<p>接下来创建一个conf目录来存放我们的django部署配置文件</p>
<p><img src="https://i.loli.net/2021/04/23/tJn4gIufy19DKEC.png" alt="静态资源和配置.png"></p>
<p>后续会把static静态目录的资源部署到nginx上，先不急，先写配置文件</p>
<p>cd进入conf开始编写配置文件</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">vi uwsgi.ini</span><br></pre></td></tr></table></figure>
<figure class="highlight shell"><figcaption><span>script</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line">[uwsgi]</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> http = 192.168.12.214:8000</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> 我是使用socket进行端口映射，映射到django的配置文件上(ip是我内网的IP，用来做端口映射)</span></span><br><span class="line">socket = 172.24.10.233:8800</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> 我的项目根目录位置，如果不知道具体位置可以在项目根目录进行<span class="built_in">pwd</span>查看</span></span><br><span class="line">chdir = /home/django_nginx/p8_workorder/</span><br><span class="line"></span><br><span class="line">wsgi-file = p8_workorder/wsgi.py</span><br><span class="line"><span class="meta">#</span><span class="bash"> 主线程开启</span></span><br><span class="line">master = true</span><br><span class="line"><span class="meta">#</span><span class="bash"> 开启进程的个数</span></span><br><span class="line">processes = 2</span><br><span class="line"><span class="meta">#</span><span class="bash"> 线程个数</span></span><br><span class="line">threads = 2</span><br><span class="line"><span class="meta">#</span><span class="bash"> 日志文件所在位置</span></span><br><span class="line">logto = /home/django_nginx/p8_workorder/conf/worker.log</span><br><span class="line"><span class="meta">#</span><span class="bash"> 文件位置同上</span></span><br><span class="line">pidfile = /home/django_nginx/p8_workorder/conf/worker.pid</span><br><span class="line"></span><br><span class="line">buffer-size = 65536</span><br></pre></td></tr></table></figure>
<p>完成之后启动uwsgi查看</p>
<figure class="highlight shell"><figcaption><span>script</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">uwsgi --ini uwsgi.ini</span><br></pre></td></tr></table></figure>
<p>浏览器访问ip和端口进行查看</p>
<h3 id="nginx部署静态资源及django配置"><a href="#nginx部署静态资源及django配置" class="headerlink" title="nginx部署静态资源及django配置"></a>nginx部署静态资源及django配置</h3><p>我们需要把刚才的static静态目录部署到nginx.conf中,首先进入我nginx.conf所在目录下<br>由于我的nginx是使用源码wget安装的，yum安装则需要到/etc目录下去找<br><img src="https://i.loli.net/2021/04/23/AXz3fZLlv4TiatS.png" alt="进入nginx.png"></p>
<p>我是在conf目录下又创建了一个conf目录，用来存放django.conf配置的，所以我在nginx.conf<br>中写了这条语句,如果使用yum安装的nginx请忽略此步骤</p>
<figure class="highlight shell"><figcaption><span>script</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">include /usr/local/nginx/conf/conf/*.conf;</span><br></pre></td></tr></table></figure>
<p>cd 进入新建的conf中配置django.conf</p>
<figure class="highlight shell"><figcaption><span>script</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">cd conf</span><br><span class="line"></span><br><span class="line">vi django.conf</span><br></pre></td></tr></table></figure>
<p>在django.conf中做以下配置</p>
<figure class="highlight shell"><figcaption><span>script</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><span class="line">upstream fanxiang&#123;</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> 配置负载均衡，此处为django配置uwsgi映射的端口，与uwsgi中映射端口要一致</span></span><br><span class="line">   server 172.24.10.233:8800;</span><br><span class="line"></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">server &#123;</span><br><span class="line">    # 监听端口</span><br><span class="line">    listen     8000;</span><br><span class="line">    server_name  localhost;</span><br><span class="line"></span><br><span class="line">    error_page   500 502 503 504  /50x.html;</span><br><span class="line">    location = /50x.html &#123;</span><br><span class="line">        root   /usr/share/nginx/html;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    location / &#123;</span><br><span class="line"></span><br><span class="line">      include uwsgi_params; # 使用 uwsgi协议</span><br><span class="line">      uwsgi_pass fanxiang; # 反向代理，配置连接django应用服务器</span><br><span class="line"></span><br><span class="line">    &#125;</span><br><span class="line">    # 此处配置静态目录</span><br><span class="line">    location /static/ &#123;</span><br><span class="line">            # 一种是根路径配置，一种是别名配置，任何一种都可以(不要在语句后注释，可能会导致在同一行注释到后面的配置，从而访问不到静态资源)</span><br><span class="line">            # root /home/django_nginx/p8_workorder;                  </span><br><span class="line">           alias /home/django_nginx/p8_workorder/static/;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p>完成后进入项目的uwsgi.ini配置的目录，重启</p>
<figure class="highlight shell"><figcaption><span>script</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">uwsgi --ini uwsgi.ini &amp;</span><br></pre></td></tr></table></figure>
<p>重启nginx服务</p>
<figure class="highlight shell"><figcaption><span>script</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">systemctl restart nginx</span><br></pre></td></tr></table></figure>
<h3 id="补充："><a href="#补充：" class="headerlink" title="补充："></a>补充：</h3><h3 id="负载均衡的几种方式"><a href="#负载均衡的几种方式" class="headerlink" title="负载均衡的几种方式"></a>负载均衡的几种方式</h3><h4 id="1、轮询（默认）"><a href="#1、轮询（默认）" class="headerlink" title="1、轮询（默认）"></a>1、轮询（默认）</h4><p>每个请求按时间顺序逐一分配到不同的后端服务器，如果后端服务器down掉，能自动剔除。</p>
<h4 id="2、weight-（权重）"><a href="#2、weight-（权重）" class="headerlink" title="2、weight （权重）"></a>2、weight （权重）</h4><p>按照不同比重进行资源的处理</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">upstream jiyun &#123;</span><br><span class="line"></span><br><span class="line">   server  127.0.0.1:8800 weight&#x3D;1;</span><br><span class="line">   server  127.0.0.1:8801 weight&#x3D;2;</span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p>经过测试，8801接收到的请求个数 比 8800多一倍</p>
<h4 id="3、ipHash进行分配"><a href="#3、ipHash进行分配" class="headerlink" title="3、ipHash进行分配"></a>3、ipHash进行分配</h4><p>通过hash算法来计算处理</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">upstream jiyun &#123;</span><br><span class="line">   ip_hash;</span><br><span class="line">   server 127.0.0.1:8800;</span><br><span class="line">   server 127.0.0.1:8801;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h3 id="正向代理与反向代理"><a href="#正向代理与反向代理" class="headerlink" title="正向代理与反向代理"></a>正向代理与反向代理</h3><p><img src="https://img-blog.csdn.net/20170702105958247?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfMzU1NjgwOTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="正向代理与反向代理"></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://shangguan-lingfeng.gitee.io/blog1/2021/04/22/CentOS%E9%83%A8%E7%BD%B2django%E9%A1%B9%E7%9B%AE/" data-id="cknublgbe0005v8uhcox3f1cz" data-title="nginx部署django项目" class="article-share-link">Teilen</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/blog1/tags/CentOS/" rel="tag">CentOS</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/blog1/2021/04/23/docker%E7%9A%84%E4%BD%BF%E7%94%A8/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Neuer</strong>
      <div class="article-nav-title">
        
          docker的使用
        
      </div>
    </a>
  
  
    <a href="/blog1/2021/04/22/flask%E5%AE%9E%E7%8E%B0%E5%9B%BE%E7%89%87%E9%AA%8C%E8%AF%81%E7%A0%81(%E6%9C%AA%E5%AE%8C%E6%88%90)/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Älter</strong>
      <div class="article-nav-title">flak实现图片验证码(未完成)</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/CentOS/" rel="tag">CentOS</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/Flask/" rel="tag">Flask</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/django/" rel="tag">django</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/docker/" rel="tag">docker</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/gitee/" rel="tag">gitee</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/linux/" rel="tag">linux</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/mysql/" rel="tag">mysql</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/python/" rel="tag">python</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/python%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" rel="tag">python基础知识</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/redis/" rel="tag">redis</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/vue/" rel="tag">vue</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/webshell/" rel="tag">webshell</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/%E4%BA%91%E4%B8%BB%E6%9C%BA%E5%AE%9E%E7%8E%B0%E8%A7%86%E9%A2%91%E7%9B%B4%E6%92%AD/" rel="tag">云主机实现视频直播</a></li><li class="tag-list-item"><a class="tag-list-link" href="/blog1/tags/%E5%85%B3%E4%BA%8E%E7%AC%AC%E4%B8%89%E6%96%B9/" rel="tag">关于第三方</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/blog1/tags/CentOS/" style="font-size: 17.5px;">CentOS</a> <a href="/blog1/tags/Flask/" style="font-size: 10px;">Flask</a> <a href="/blog1/tags/django/" style="font-size: 12.5px;">django</a> <a href="/blog1/tags/docker/" style="font-size: 12.5px;">docker</a> <a href="/blog1/tags/gitee/" style="font-size: 10px;">gitee</a> <a href="/blog1/tags/linux/" style="font-size: 10px;">linux</a> <a href="/blog1/tags/mysql/" style="font-size: 12.5px;">mysql</a> <a href="/blog1/tags/python/" style="font-size: 15px;">python</a> <a href="/blog1/tags/python%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" style="font-size: 17.5px;">python基础知识</a> <a href="/blog1/tags/redis/" style="font-size: 12.5px;">redis</a> <a href="/blog1/tags/vue/" style="font-size: 20px;">vue</a> <a href="/blog1/tags/webshell/" style="font-size: 10px;">webshell</a> <a href="/blog1/tags/%E4%BA%91%E4%B8%BB%E6%9C%BA%E5%AE%9E%E7%8E%B0%E8%A7%86%E9%A2%91%E7%9B%B4%E6%92%AD/" style="font-size: 10px;">云主机实现视频直播</a> <a href="/blog1/tags/%E5%85%B3%E4%BA%8E%E7%AC%AC%E4%B8%89%E6%96%B9/" style="font-size: 12.5px;">关于第三方</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archiv</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/blog1/archives/2021/05/">五月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/blog1/archives/2021/04/">四月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/blog1/archives/2021/03/">三月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/blog1/archives/2021/02/">二月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/blog1/archives/2021/01/">一月 2021</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">letzter Beitrag</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/blog1/2021/05/14/docker+CentOS+mysql%E5%AE%9E%E7%8E%B0%E4%B8%BB%E4%BB%8E%E5%90%8C%E6%AD%A5/">docker+CentOS+mysql实现主从同步</a>
          </li>
        
          <li>
            <a href="/blog1/2021/05/13/mysql%E5%AE%9E%E7%8E%B0%E8%AF%BB%E5%86%99%E5%88%86%E7%A6%BB(%E5%9C%A8%E4%B8%BB%E4%BB%8E%E5%90%8C%E6%AD%A5%E5%9F%BA%E7%A1%80%E4%B8%8A)/">mysql实现读写分离</a>
          </li>
        
          <li>
            <a href="/blog1/2021/05/12/%E5%9C%A8%E9%A1%B9%E7%9B%AE%E4%B8%AD%E8%87%AA%E5%8A%A8%E7%94%9F%E6%88%90%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3/">在项目中自动生成接口文档</a>
          </li>
        
          <li>
            <a href="/blog1/2021/05/12/mysql%E5%AE%9E%E7%8E%B0%E4%B8%BB%E4%BB%8E%E5%90%8C%E6%AD%A5/">mysql实现主从同步</a>
          </li>
        
          <li>
            <a href="/blog1/2021/05/09/CentOS%E9%83%A8%E7%BD%B2flask%E9%A1%B9%E7%9B%AE/">nginx部署flask项目</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 Jerry<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/blog1/" class="mobile-nav-link">Home</a>
  
    <a href="/blog1/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/blog1/js/jquery-3.4.1.min.js"></script>



  
<script src="/blog1/fancybox/jquery.fancybox.min.js"></script>




<script src="/blog1/js/script.js"></script>





  </div>
</body>
</html>